{% extends 'org_base.html' %}
{% load staticfiles %}
{% block title %}<title>机构讲师列表</title>{% endblock %}
{% block custom_css %} {% endblock %}
{% block custom_js %} {% endblock %}
{% block org_path %}
    <section>
	<div class="wp">
		<ul  class="crumbs">
            <li><a href="{% url 'index' %}">首页</a>></li>
			<li><a href="{% url 'org:org_list' %}">课程机构</a>></li>
			<li>机构讲师列表</li>
		</ul>
	</div>
</section>
{% endblock %}
{% block content %}
    <div class="right companycenter layout" >
            <div class="head">
                <h1>机构讲师</h1>
            </div>
            <div class="messagelist">
                <div class=" butler_list butler-fav-box">
                {% for teacher in teachers.object_list %}
                    <dl class="des users">
                        <dt>
                            <a href="">
                            <img width="100" height="100" class="scrollLoading" data-url="{{ MEDIA_URL }}{{ teacher.image }}" src="{{ MEDIA_URL }}{{ teacher.image }}"/>
                            </a>
                        </dt>
                        <dd>
                            <h1>
                                <a href="">
                                {{ teacher.name }}<span class="key">已认证</span>
                                </a>
                            </h1>
                            <ul class="cont clearfix">
                                <li class="time">工作年限：<span>{{ teacher.work_years }}</span></li>
                                <li class="c7">课程数：<span>{{ teacher.count_courses }}</span></li>
                            </ul>
                        </dd>
                    </dl>
                 {% endfor %}
                </div>
            <div class="footer pageturn">
                <ul class="pagelist">
                {% if teachers.has_previous %}
                <li class="long"><a href="?{{ teachers.previous_page_number.querystring }}">上一页</a></li>
            {% endif %}
                {% for page in teachers.pages %}
                {% if page %}
                    {% ifequal page teachers.number %}
                <li class="active"><a class="page">{{ page }}</a> </li>
                    {% else %}
                <li><a href="?{{ page.querystring }}" class="page">{{ page }}</a></li>
                    {% endifequal %}
                {% else %}
                <li class="none"><span>...</span></li>
                {% endif %}
            {% endfor %}
                {% if teachers.has_next %}
                <li class="long"><a href="?{{ teachers.next_page_number.querystring }}">下一页</a></li>
            {% endif %}
                </ul>
            </div>
            </div>
        </div>
{% endblock %}